close all;

obj = out{5}.RMSE;
tim = Time(5)/length(obj);
tim = tim*(1:length(obj));
plot(tim(1:10:end), obj(1:10:end), 'linewidth', 2, 'color', 'green', 'marker', '*');
hold on;

hold on;
obj = out{6}.RMSE;
tim = 7*Time(6)/length(obj);
tim = tim*(1:length(obj));
plot(tim(1:20:1000), obj(1:20:1000), 'linewidth', 2, 'color', 'cyan', 'marker', 's');

hold on;
obj = out{4}.RMSE;
tim = Time(4)/length(obj);
tim = tim*(1:length(obj));
plot(tim, obj, 'linewidth', 2, 'color', 'magenta', 'marker', 'v');

obj = out{3}.RMSE;
tim = Time(3)/length(obj);
tim = tim*(1:length(obj));
plot(tim(1:end), obj(1:end), 'linewidth', 2, 'color', 'blue', 'marker', 'o');

hold on;
obj = out{2}.RMSE;
tim = Time(2)/length(obj);
tim = tim*(1:length(obj));
plot(tim(1:10:end), obj(1:10:end), 'linewidth', 2, 'color', 'red', 'marker', 'x');

hold on;
obj = out{1}.RMSE;
tim = Time(1)/length(obj);
tim = tim*(1:length(obj));
plot(tim(1:10:end), obj(1:10:end), 'linewidth', 2, 'color', 'black', 'marker', '+');

axis([0, 10, 0.95, 5]);
xlabel('time (sec)');
ylabel('objective minus best');
legend('active', 'FW', 'MMBS', 'APG', 'Soft-Impute', 'AIS-Impute');